<?php
$db = new Database;
$fs = new functions;

if(isset($_POST['action'])){
    $action = $_POST['action'];
    
    /* Remove Files attached on the request
    ================================================== */
        if($action=="deleteFiles"){
            $file_location = $_POST['file_location'];
            unlink($file_location);
            echo "File was successfully deleted.";
        }

}      
?>